package com.jxl.application.controller.convert;

import com.jxl.domain.entity.AuthRolePermissionBO;
import com.jxl.dto.AuthRolePermissionDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthRolePermissionDtoConvert {

    AuthRolePermissionDtoConvert INSTANCE = Mappers.getMapper(AuthRolePermissionDtoConvert.class);

    /**
     * 类型转换
     * @param authRolePermissionDto
     * @return
     */
    AuthRolePermissionBO convertDtoToAuthRolePermissionBO(AuthRolePermissionDto authRolePermissionDto);

    /**
     * 集合类型转换
     * @param authRolePermissionDtos
     * @return
     */
    List<AuthRolePermissionBO> convertDtoToAuthRolePermissionBOList(List<AuthRolePermissionDto> authRolePermissionDtos);
}
